package com.cheng.example.atguigu.design_pattern.factory.simple;

public abstract class Pizza {

    protected String name;

    //准备原料，不同的披萨不一样，因此，我们做成抽象方法
    public abstract void prepare();
    //烘烤
    public void bake(){
        System.out.println(name+" baking");
    }
    //切片
    public void cut(){
        System.out.println(name+" cutting");
    }
    //装箱
    public void box(){
        System.out.println(name+" boxing");
    }
    public void setName(String name){
        this.name = name;
    }
}
